/**
*@param getWechat 获取微信二维码地址
*@param watchScan 微信扫码事件接口
*@desc 微信相关接口
*/

import type {IWechat} from '~/types/api'
export const getWechat = () => {
    return useApi<IWechat>('/api/wx_login/v1/login')
}

export const watchScan = (ticket:string) => {
    return useApi<null | string>('/api/wx_login/v1/check_scan',{
        method:'get',
        params:{
            ticket
        }
    })
}